package com.daodway.designpattern.commandpattern.undo;

import org.junit.Test;

public class Client {
	@Test
	public  void debug(){
		MakerDir makeDir = new MakerDir();
		Command command = new ConcreteCommand(makeDir);
		RequestMakedir askMakeDir = new RequestMakedir();
		askMakeDir.setCommand(command);
		askMakeDir.startExecuteCommand("jiafei");
		askMakeDir.startExecuteCommand("jerry");
		askMakeDir.startExecuteCommand("tom");
		askMakeDir.undoCommand();
		askMakeDir.undoCommand();
	}
}
